package com.sfddata.musicpillow.oauth.feign;

import com.sfddata.musicpillow.common.respose.BaseRespose;
import com.sfddata.musicpillow.oauth.entity.UserInfoEntity;
import com.sfddata.musicpillow.oauth.vo.CheckPassWord;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("mp-user")
public interface UserFeignService {

    @PostMapping("user/checkPassword")
    BaseRespose<UserInfoEntity> checkPassword(@RequestBody CheckPassWord checkPassWord);

    @PostMapping("user/getUserInfoByPhone")
    BaseRespose<UserInfoEntity> getUserInfoByPhone(@RequestParam("phone")String phone);

    @PostMapping("user/modifyUserInformation")
    BaseRespose<UserInfoEntity> updateUserInfo(UserInfoEntity userInfoVo);
}
